<template>
  产品列表
  <div v-for="i of 5" @click="toDetail(i)">产品 {{ i }}</div>
</template>
<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
const toDetail = (val) => {
  router.push({
    name: "Detail",
    params: { id: 123, b: "dd", c: "ffff" },
    query: { tab: "profile" },
  });
};
</script>
